package com.qcy.jwtdemo.exception;

import com.qcy.jwtdemo.exception.exceptionCodeEum.ExceptionCode;

public class AuthonException extends Exception{
    private String message;
    private int code;

    public AuthonException(String message, int code) {
        this.message = message;
        this.code = code;
    }
    public AuthonException(ExceptionCode exceptionCode) {
        this.message = exceptionCode.getMsg();
        this.code = exceptionCode.getCode();
    }

}
